$def with (user,mission_list)
<html lang="zh-cn">
   <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="首页">
    <meta name="author" content="jry">
    <title>我的任务</title>
    <script src="/static/js/jquery-1.11.1.min.js"></script>
    <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script src="/static/bootstrap/js/bootstrap.min.js"></script>
    
    <link href="/static/css/dashboard.css" rel="stylesheet">
	
	<link href="/static/bootstrap-calendar/src/css/bootstrap.calendar.css" rel="stylesheet">
	<script src="/static/bootstrap-calendar/src/bootstrap.calendar.js"></script>
	<script type="text/javascript">
        $$(document).ready(function(){

          var evnts = function(){
              return {
                      "event":
                          [
                               {"date":"01/01/2012","title":"1"}
                              ,{"date":"02/02/2012","title":"2"}
                              ,{"date":"03/03/2012","title":"34"}
                              ,{"date":"04/04/2012","title":"123"}
                              ,{"date":"05/05/2012","title":"223"}
                              ,{"date":"06/06/2012","title":"4"}
                              ,{"date":"07/07/2012","title":"5"}
                              ,{"date":"08/08/2012","title":"14"}
                              ,{"date":"09/09/2012","title":"10"}
                              ,{"date":"10/10/2012","title":"10"}
                              ,{"date":"11/11/2012","title":"10"}
                              ,{"date":"12/12/2012","title":"10"}
                          ]
                      }
          };

         $$('#calendar').Calendar({ 'events': evnts, 'weekStart': 1 })
         .on('changeDay', function(event){ alert(event.day.valueOf() +'-'+ event.month.valueOf() +'-'+ event.year.valueOf() ); })
         .on('onEvent', function(event){ alert(event.day.valueOf() +'-'+ event.month.valueOf() +'-'+ event.year.valueOf() ); })
         .on('onCurrent', function(event){ alert("Current"); });
      });

    </script>
    
	<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
  	
  	<!-- 
<script>
  		function submit_new_mission(){
  			$$("#new_mission").ajaxSubmit({  
                    type: 'post',  
                    url: "/new_mission" ,  
                    success: function(status,data){  
                        alert(data.msg);
                        return false;
                    },  
                    error: function(XmlHttpRequest, textStatus, errorThrown){  
                        alert( "请求发送失败！");  
                        return false;
                    }
                }); 
            return false;
        }	
  	</script>
 -->
  </head>
  <body>
    
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">通达OA</a>
        </div>
        <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">后台首页</a></li>
            <li><a href="#">设置</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">$user<b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li class="dropdown-header">姓名（职务）</li>
                <li><a href="/logout">注销登录</a></li>
              </ul>
            </li>
          </ul>
          <form class="navbar-form navbar-right">
            <input type="text" class="form-control" placeholder="Search...">
          </form>
        </div>
      </div>
    </div>
    
    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li class="active"><a href="/my_mission">任务列表</a></li>
            <li><a href="/new_mission">新建任务</a></li>
          </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
                
            <h2 class="sub-header">任务列表</h2>
	
			<div  id="calendar"></div><br>

            <div>
				<table class="table table-bordered">
						<th>任务名称
							<td>发布者</td>
							<td>开始时间</td>
							<td>计划结束时间</td>
							<td>实际完成时间</td>
							<td>状态</td>
						</th>
						$for m in mission_list:
						    <tr> 
                  <td>
                       $m['mission_id']
                  </td>
							    <td>
							    	<a href="/view_mission/?mission_id=$m['mission_id']">
						                   $m['mission_name']
						            </a>
							    </td>
							    <td>
						           $m['mission_publisher']
							    </td>
							    <td>
						           $m['mission_starttime']
							    </td>
							    <td>
						           $m['mission_plan_end_time']
							    </td>
							    <td>
						           $m['mission_actuall_end_time']
							    </td>
							    <td>
						           $m['mission_status']
							    </td>
						    </tr>
				</table>
			</div>
            
            
            <ul class="pagination">
			  <li><a href="#">上一页</a></li>
			  <li><a href="#" class="active">1</a></li>
			  <li><a href="#">2</a></li>
			  <li><a href="#">3</a></li>
			  <li><a href="#">4</a></li>
			  <li><a href="#">5</a></li>
			  <li><a href="#">下一页</a></li>
			</ul>
         
        </div>
      </div>
    </div>
    
</body>
</html>
